package com.ruoyi.score.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.score.domain.ScoreDetail;
import org.apache.ibatis.annotations.Mapper;

/**
 * 积分明细Mapper接口
 * 
 * @author ruoyi
 * @date 2024-08-13
 */
@Mapper
public interface ScoreDetailMapper extends BaseMapper<ScoreDetail>
{
    /**
     * 查询积分明细
     * 
     * @param id 积分明细主键
     * @return 积分明细
     */
    public ScoreDetail selectScoreDetailById(Long id);

    /**
     * 查询积分明细
     *
     * @param userId 积分明细主键
     * @return 积分明细
     */
    public Long selectTodayScoreByUserId(Long userId);

    /**
     * 查询积分明细列表
     * 
     * @param scoreDetail 积分明细
     * @return 积分明细集合
     */
    public List<ScoreDetail> selectScoreDetailList(ScoreDetail scoreDetail);

    /**
     * 新增积分明细
     * 
     * @param scoreDetail 积分明细
     * @return 结果
     */
    public int insertScoreDetail(ScoreDetail scoreDetail);

    /**
     * 修改积分明细
     * 
     * @param scoreDetail 积分明细
     * @return 结果
     */
    public int updateScoreDetail(ScoreDetail scoreDetail);

    /**
     * 删除积分明细
     * 
     * @param id 积分明细主键
     * @return 结果
     */
    public int deleteScoreDetailById(Long id);

    /**
     * 批量删除积分明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteScoreDetailByIds(Long[] ids);
}
